package com.jerry.shop.service.impl;

import com.jerry.shop.bean.Buyer;
import com.jerry.shop.mapper.BuyerMapper;
import com.jerry.shop.service.BuyerService;
import com.jerry.shop.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BuyerServiceImpl implements BuyerService {

    @Autowired
    private BuyerMapper buyerMapper;

    @Override
    public Buyer findOne(int id){
        return buyerMapper.getBuyerById(id);
    }

}
